<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="Keywords" content="关键词1,关键词2，关键词3,关键词4,……" />
<meta name="Description" content="你网页的简述" />
<meta name="Robots" content="All" />
<meta name="Generator" content="Dreamweaver" />
<title>修改学生个人信息</title>
<link href="<%=path%>/static/css/css.css" rel="stylesheet"
	type="text/css" />
</head>

<body>
	<h3 id="subTitle">修改学生个人信息</h3>
	<ul id="button">
		<li><a href="javascript:history.back()">返回</a></li>
	</ul>
	<form
		action="<%=path%>/studentServlet?status=up&id=${requestScope.stu.getId()}"
		method="post" name="form1" id="form1">
		<table width="90%" border="0" align="center" cellpadding="0"
			cellspacing="0" class="table">
			<tr>
				<th colspan="4" class="p4"><span class="title2"><h6>修改学生个人信息:</h6></span></th>
			</tr>
			<tr>
				<td width="20%" align="right" class="title2">学号：</td>
				<td width="80%" class="within2bg"><input name="num" type="text"
					class="input2" value="${requestScope.stu.getNum()}" /></td>
			</tr>
			<tr>
				<td width="20%" align="right" class="title2">姓名：</td>
				<td width="80%" class="within2bg"><input name="sname"
					type="text" class="input2" value="${requestScope.stu.getSname()}" /></td>
			</tr>
			<tr>
				<td width="20%" align="right" class="title2">性别：</td>
				<td width="80%" class="within2bg"><c:choose>
				<c:when test="${requestScope.stu.getSex() eq '男'}">
					<input name="sex" type="radio" class="input2" checked="true"
								value="男" />男
					<input name="sex" type="radio" class="input2" value="女"/>女</td>
				</c:when>
				<c:otherwise>
					<input name="sex" type="radio" class="input2" 
								value="男" />男
					<input name="sex" type="radio" class="input2" checked="true" value="女"/>女</td>
				</c:otherwise>
				</c:choose>
			</tr>
			<tr>
				<td width="20%" align="right" class="title2">出生日期：</td>
				<td width="80%" class="within2bg"><input name="birthday"
					type="text" class="input2" value="${requestScope.stu.getBirthday()}" /> 格式：年(4位)月(2位)日(2位)
					例：19850101(1985年1月1日)</td>
			</tr>
			<tr>
				<td width="20%" align="right" class="title2">籍贯：</td>
				<td width="80%" class="within2bg"><input name="nativeplace"
					type="text" class="input2" size="40" value="${requestScope.stu.getNativeplace()}" /></td>
			</tr>
			<tr>
				<td width="20%" align="right" class="title2">家庭住址：</td>
				<td width="80%" class="within2bg"><input name="address"
					type="text" class="input2" size="40" value="${requestScope.stu.getAddress()}" /></td>
			</tr>
			<tr>
				<td width="20%" align="right" class="title2">联系电话：</td>
				<td width="80%" class="within2bg"><input name="tel"
					type="text" class="input2" value="${requestScope.stu.getTel()}" /></td>
			</tr>
			<tr>
				<td width="20%" align="right" class="title2">所属类别：</td>
				<td width="80%" colspan="3" class="within2bg">
				<select name="category">
				<option value="null">请选择类别</option>
				<c:forEach var="category" items="${requestScope.clist }" varStatus="id">
				<c:choose>
				<c:when test="${category.getId() == requestScope.stu.getbJi().getCategory().getId()}">
					<option value="${category.getId()}" selected="selected">${category.getName()}</option>
				</c:when>
				<c:otherwise>
					<option value="${category.getId()}" >${category.getName()}</option>
				</c:otherwise>
				</c:choose>
				</c:forEach>
				</select>
			</tr>
			<tr>
				<td align="right" class="title2">所属专业：</td>
				<td colspan="3" class="within2bg">
				<select name="major">
				<option value="null">请选择专业</option>
				<c:forEach var="major" items="${requestScope.mlist }" varStatus="id">
				<c:choose>
				<c:when test="${major.getId() eq requestScope.stu.getbJi().getMajor().getId()}">
				<option value="${major.getId()}" selected="selected">${major.getName()}</option>
				</c:when>
				<c:otherwise>
				<option value="${major.getId()}" >${major.getName()}</option>
				</c:otherwise>
				</c:choose>
				</c:forEach>
				</select>
			</tr>
			<tr>
				<td align="right" class="title2">所属班级：</td>
				<td colspan="3" class="within2bg">
				<select name="bj">
				<option value="null">请选择专业</option>
				<c:forEach var="bj" items="${requestScope.blist }" varStatus="id">
				<c:choose>
				<c:when test="${bj.getId() eq requestScope.stu.getbJi().getId()}">
				<option value="${bj.getId()}" selected="selected">${bj.getName()}</option>
				</c:when>
				<c:otherwise>
				<option value="${bj.getId()}" >${bj.getName()}</option>
				</c:otherwise>
				</c:choose>
				</c:forEach>
				</select>
			</tr>
			<tr>
				<td align="right" class="title2">备注：</td>
				<td colspan="3" class="within2bg"><textarea name="remark"
						cols="100" class="textarea3">${requestScope.stu.getRemark() }</textarea></td>
			</tr>
		</table>
		<table width="90%" border="0" align="center" cellpadding="0"
			cellspacing="0" class="yesno">
			<tr>
				<td align="center"><input name="Submit2" type="submit"
					class="bevel" value="确定" /> <input name="Submit3" type="reset"
					class="bevel" value="取消" /></td>
			</tr>
		</table>
	</form>
</body>
</html>